package com.luyou.a07;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;

import javax.annotation.PostConstruct;

/**
 * 初始化 执行顺序依次是 @PostConstruct、InitializingBean、initMethod
 * @author 28336
 * @version 1.0
 * Create by 2023/12/25 8:30
 */
@Slf4j
public class Bean1 implements InitializingBean {


    @PostConstruct
    public void init(){
        log.info("初始化1");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        log.info("初始化2");
    }

    public void init3(){
        log.info("初始化3");
    }
}
